package com.study.other6;

import com.google.gson.GsonBuilder;
import com.study.other6.MyVo.MyVo1;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author tanglingyu
 * @Date: 2021/09/14/ 10:40
 * @Description
 */
public class Deamon0 {

  public static void main(String[] args) {
    List<MyVo1> list = new ArrayList<>();
    for (int i = 0; i < 10; ++i) {
      list.add(new MyVo1());
    }
    final MyVo myVo = new MyVo();
    myVo.setList(list);
    final String s = new GsonBuilder().setPrettyPrinting().create().toJson(myVo);
    System.out.println(s);
  }
}
